Skip to content

Add PadovanSequence Implementation#7477

Merged
DenizAltunkapan merged 2 commits into
TheAlgorithms:masterfrom
Rosander0:add-padovan-sequence-v2
Jun 20, 2026
Merged

Add PadovanSequence Implementation#7477
DenizAltunkapan merged 2 commits into
TheAlgorithms:masterfrom
Rosander0:add-padovan-sequence-v2

Conversation

@Rosander0

Copy link
Copy Markdown
Contributor
  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter

codecov-commenter commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.87%. Comparing base (e57a675) to head (67312ab).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7477      +/-   ##
============================================
+ Coverage     79.86%   79.87%   +0.01%     
- Complexity     7332     7334       +2     
============================================
  Files           807      808       +1     
  Lines         23819    23833      +14     
  Branches       4688     4690       +2     
============================================
+ Hits          19023    19037      +14     
  Misses         4036     4036              
  Partials        760      760              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Padovan sequence implementation to the com.thealgorithms.maths package, along with a JUnit test suite to validate correctness and input validation behavior.

Changes:

  • Introduces PadovanSequence utility class with an iterative padovan(int) implementation.
  • Adds PadovanSequenceTest covering base cases, known values, and negative-input handling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/main/java/com/thealgorithms/maths/PadovanSequence.java Adds Padovan sequence computation with input validation and class-level documentation.
src/test/java/com/thealgorithms/maths/PadovanSequenceTest.java Adds unit tests for base cases, known outputs, and invalid input behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/thealgorithms/maths/PadovanSequence.java Outdated
Comment thread src/test/java/com/thealgorithms/maths/PadovanSequenceTest.java Outdated
Comment thread src/main/java/com/thealgorithms/maths/PadovanSequence.java
@Rosander0 Rosander0 force-pushed the add-padovan-sequence-v2 branch from 65a0ffc to 0d2a2bb Compare June 18, 2026 14:52

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@DenizAltunkapan DenizAltunkapan enabled auto-merge (squash) June 20, 2026 22:20
@DenizAltunkapan DenizAltunkapan merged commit 631eae3 into TheAlgorithms:master Jun 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants